home *** CD-ROM | disk | FTP | other *** search
/ Mac-Source 1994 July / Mac-Source_July_1994.iso / C and C++ / System / Chassis 6.0 ƒ / TextDrawProc.c < prev    next >
Encoding:
C/C++ Source or Header  |  1993-09-22  |  918 b   |  28 lines  |  [TEXT/KAHL]

  1. /************************************************************************************/
  2. /*    TextDrawProc                                                                    */
  3. /*  This routine should be invoked between a BeginUpdate and EndUpdate sequence,    */
  4. /*    usually after an Update event in the main event loop.                            */
  5. /************************************************************************************/
  6.  
  7. #include "MyHeaders.h"
  8.  
  9. short TextDrawProc ()
  10. {
  11.     short        TextDrawRetCode = 0;
  12.     PicHandle    thePic;                            /* for background picture            */
  13.     
  14.     SetPort (windTbl[windSub].windPtr);            /* set as the grafPort                */
  15.  
  16.     myActionProc (windTbl[windSub].windCntlH[0], 0);
  17.     
  18.     DrawControls (windTbl[windSub].windPtr);    /* draw un-hidden controls            */
  19.     
  20.                                                 /* draw/erase grow icon                */
  21.     DrawGrowIcon (windTbl[windSub].windPtr);    /* and draw lines                    */
  22.  
  23.     TEUpdate (&(**windTbl[windSub].windTEH[0]).viewRect,
  24.             windTbl[windSub].windTEH[0]);
  25.     
  26.     return TextDrawRetCode;
  27. }
  28.